//package com.example.springai.config;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.client.RestTemplate;
//
//import java.util.Collections;
//
//@Configuration
//public class RestTemplateConfig {
//
//    @Bean("apiRestTemplate")
//    public RestTemplate restTemplate(RestTemplateLoggingInterceptor loggingInterceptor) {
//        RestTemplate restTemplate = new RestTemplate();
//        restTemplate.setInterceptors(Collections.singletonList(loggingInterceptor));
//        return restTemplate;
//    }
//}
